
			var map; // Global declaration of the map
			var iw = new google.maps.InfoWindow(); // Global declaration of the infowindow
			var lat_longs = new Array();
			var markers = new Array();
		
		  	function initialize() {
				
				var myLatlng = new google.maps.LatLng(37.4419, -122.1419);
				var myOptions = {
			  		zoom: 13,
					center: myLatlng,
			  		mapTypeId: google.maps.MapTypeId.ROADMAP}
				map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
				
			var myLatlng = new google.maps.LatLng(37.429, -122.1519);
					
			var marker = new google.maps.Marker({
				position: myLatlng, 
				map: map,
				draggable: true		
			});		
			marker.set("content", "<input value=\"somethin\"></input>");
			
			google.maps.event.addListener(marker, "click", function() {
				iw.setContent(this.get("content"));
				iw.open(map, this);
			});
			
			markers.push(marker);
			lat_longs.push(marker.getPosition());
		
			var myLatlng = new google.maps.LatLng(37.409, -122.1319);
					
			var marker = new google.maps.Marker({
				position: myLatlng, 
				map: map		
			});		
			marker.set("content", "2- Hello World!");
			
			google.maps.event.addListener(marker, "click", function() {
				iw.setContent(this.get("content"));
				iw.open(map, this);
			});
			
			markers.push(marker);
			lat_longs.push(marker.getPosition());
		
			var bounds = new google.maps.LatLngBounds();
			for (var i=0; i<lat_longs.length; i++) {
				bounds.extend(lat_longs[i]);
			}
			map.fitBounds(bounds);
			
                    var test = google.maps.event.addListener(map, "click", function(event) {
                        var clickedLocation = new google.maps.LatLng(event.latLng);
                        var marker = new google.maps.Marker({
                            position: event.latLng,
                            map: map,
                            draggable : true
                        });
                        google.maps.event.removeListener(test);
                    });
		
		
		  	window.onload = initialize;
		